package com.qbw.app.model;

import androidx.databinding.Bindable;

import com.qbw.app.BR;

/**
 * @author QBW
 * @date 2019/9/4
 */
public class TravelGps extends BaseModel {

    private float altitude;
    private String deviceCode;
    private int direction;
    private double gpsSpeed;
    private long gpsTime;
    private double latitude;
    private double longitude;
    private long rcvTime;
    private int satellites;

    public float getAltitude() {
        return altitude;
    }

    public void setAltitude(float altitude) {
        this.altitude = altitude;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    @Bindable
    public double getGpsSpeed() {
        return gpsSpeed;
    }

    public void setGpsSpeed(double gpsSpeed) {
        this.gpsSpeed = gpsSpeed;
        notifyPropertyChanged(BR.gpsSpeed);
    }

    public long getGpsTime() {
        return gpsTime;
    }

    public void setGpsTime(long gpsTime) {
        this.gpsTime = gpsTime;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public long getRcvTime() {
        return rcvTime;
    }

    public void setRcvTime(long rcvTime) {
        this.rcvTime = rcvTime;
    }

    public int getSatellites() {
        return satellites;
    }

    public void setSatellites(int satellites) {
        this.satellites = satellites;
    }

    public static class Response extends BaseResponseList<TravelGps> {
    }
}
